<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <link href="css/moban.css" type="text/css" rel="stylesheet" media="screen" />
    <link href="css/widget.css" type="text/css" rel="stylesheet" media="screen" />
<script type="text/javascript">
function showMsg() {
	var msg = '${message}';
	if(msg!=null&&msg!=""){
		alert(msg);
	}
}
</script>
</head>
  
<body onload="showMsg()">
<div id="package">
	<div id="hel">
		<div id="title">
    		<span>导入操作结果</span>
    		<span id="right"><a href="managementOfMember/showImportExcel.jsp" target="main">前页</a></span>
    	</div>
    </div>
	<div id="content">
    	 <s:if test="#members != null">
    		<table class="tab">
    		<tr>
    			<th>姓名</th>
    			<th>身份证</th>
    			<th>团总支</th>
    			<th>团支部</th>
    		</tr>
    		<s:iterator value="membersList" var="member" status="item">
    			<tr>
    				<td><s:property value="%{#item.getIndex()+1}"/></td>
    				<td  style="text-align:center;"><s:property value="values[1]" /></td>
			        <td  style="text-align:center;"><s:property value="values[2]" /></td>
					<td style="text-align:center;"><s:property value="values[3]" /></td>
					<td style="text-align:center;"><s:property value="values[4]" /></td>
				</tr>
    		</s:iterator>
    	</table>
    </s:if>
    <s:else>
    	<table class="tab">
    		<tr>
    			<th>序号</th>
    			<th>姓名</th>
    			<th>身份证</th>
    			<th>团总支</th>
    			<th>团支部</th>
    		</tr>
    		<s:iterator value="members" var="member" status="item">
    			<tr>
    				<td><s:property value="%{#item.getIndex()+1}"/></td>
    				<td style="text-align:center;"><s:property value="values[1]" /></td>
			        <td style="text-align:center;"><s:property value="values[0]" /></td>
					<td style="text-align:center;"><s:property value="values[3]" /></td>
					<td style="text-align:center;"><s:property value="values[4]" /></td>
				</tr>
    		</s:iterator>
    	</table>
    </s:else>
    </div>
</div>
</body>
</html>
